package com.zbkj.service.service.order;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zbkj.common.model.order.OrderInfo;
import com.zbkj.common.model.user.User;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.request.order.AdminOrderQueryRequest;
import com.zbkj.common.vo.order.OrderConditionVo;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author 
 * @since 2024-09-15
 */
public interface OrderInfoService extends IService<OrderInfo> {

    PageInfo<OrderInfo> getAdminList(AdminOrderQueryRequest paramRequest);

    OrderInfo getOrderInfoByOrderNo(String orderNo);

    OrderInfo getOrderInfo(Long orderId, String orderNo);


    PageInfo<OrderInfo> getOrderList(Long userId, PageParamRequest paramRequest);

    List<String> payVouchesStrToShowList(String payVouches);

    String payVouchesToSaveStrList(List<String> payVouchesList);

    boolean updateOrder(OrderInfo orderInfo, OrderConditionVo conditionVo);

    OrderInfo saveOrderPojoBuild(User user, int sourceType);

    int getCountByTfremark(String code);

    PageInfo<OrderInfo> getOrderList(Long userId, int page, int limit, Integer invoiceFlag);
}
